<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <!-- 引入核心样式 -->
   
    <link href="http://appimg.yinsoso.com/css/public.css" rel="stylesheet">
    <link href="http://appimg.yinsoso.com/css/style-min.css" rel="stylesheet">
    <link href="../../../src/weui/lib/weui.css" rel="stylesheet">
    <link href="http://appimg.yinsoso.com/css/jquery-weui.css" rel="stylesheet">
    <link href="http://appimg.yinsoso.com/css/swiper-3.3.1.min.css" rel="stylesheet" />
    <!--当前页面的css-->
    <link href="css/productDetails.css" rel="stylesheet">

    <!--prodcut-->
    <link rel="stylesheet" href="../css/pro2.css">
    <!-- 引入核心JS -->
    <script src="http://appimg.yinsoso.com/js/vue.min.js"></script>
    <script src="http://appimg.yinsoso.com/js/3.2.0-jquery.min.js"></script>
    <script src="http://appimg.yinsoso.com/js/jquery-weui.min.js"></script>
    <script src="http://appimg.yinsoso.com/js/index.min.js"></script>
    <script src="http://appimg.yinsoso.com/js/fastclick.min.js"></script>
    <script src="http://appimg.yinsoso.com/js/common.js" ></script>
    <script src="http://appimg.yinsoso.com/js/swiper-3.3.1.min.js" ></script>
</head>

<body>
    <div id="app" v-show="pageFlag">
        <!-- 轮播 -->
        <div class="buyBanner">
            <!-- Swiper -->
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide" v-for="(item, index) in bannerData" :key="index">
                        <a href="javascript:void(0);">
                            <img :src="item" class="bannerImg" />
                        </a>
                    </div>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
            </div>
        </div>
        <!--立即下单-->
        <div class="container">
            <div class="clearfix" style="padding: 8px 0 3px 0px">
                <div class="fr">
                    ￥<span class="sec-price">{{price}}</span> <em class="sec-oldprice">￥{{original_price}}</em>
                </div>
                <div class="lr">
                    <a class="nowcard" @click="Orders">立即下单</a>
                </div>
            </div>
            <div class="sub-title clearfix">{{goods_title}}</div>
            <div class="sub-gray">
                {{goods_name}}
            </div>
            <ul class="list-row">
                <li><i class="icon-shop"></i>{{delivery_time}}小时发货</li>
                <li><i class="icon-shop"></i>{{free_shipping}}元包邮</li>
                <li><i class="icon-shop"></i>{{refund_type | refundTxt}}</li>
            </ul>
        </div>
        <div class="line-nav"></div>
        <div class="street clearfix">
            <div class="shop-title"><i class="icon-detail"></i> 商品详情</div>
            <div style="font-size:0px;border: 0;padding:0;margin: 0;">
                <img :src="item" v-for="item in detailData" />
            </div>
        </div>
        <!-- 选择规格 -->
        <div class="van-sku-container van-popup">
            <div style="position: relative;padding: 10px 10px;font-size: 14px">价格：
                <span class="van-sku__price-num">{{specsPrice}}</span>
                <span class="goodsClose" @click="goodsClose"><img src="http://appimg.yinsoso.com/goods_close.png"/></span>
            </div>
            <div style="padding: 10px 10px 0px 10px;font-size: 14px">
                规格：
                <div style="padding-top: 10px;">
                    <span class="van-sku-row__item" v-for="item in specList" @click="selctSpec(item)" v-bind:class="{'van-sku-row__item--active':item.spec_id==specId}">{{item.spec}}</span>
                </div>
            </div>
            <div class="van-sku-stepper-stock" style="font-size: 14px">
                <div class="van-sku-stepper-container">
                    <div class="van-sku__stepper-title">购买数量</div>
                    <div class="van-sku__stepper van-stepper">
                        <button class="van-stepper__minus" @click="subtractNum"></button>
                        <input type="number" class="van-stepper__input" v-model="num" disabled>
                        <button class="van-stepper__plus" @click="addNum"></button>
                    </div>
                </div>
            </div>
            <div style="height: 30px;"></div>
            <div style="font-size: 14px">
                <div class="van-button van-button--primary van-button--normal van-button--bottom-action" @click="submitBtn">立即购买</div>
            </div>

        </div>
        <div class="van-modal" @click="goodsClose"></div>
        <!--end 选择规格 -->
    </div>
    <script type="text/javascript" src="js/pagejs/productdetail.js"></script>
</body>

</html>